﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace novelDownloader.Classes
{
    abstract class BaseSite
    {
        /// <summary>
        /// 获取检索结果
        /// </summary>
        /// <param name="name">检索词</param>
        /// <returns>检索到的书籍列表</returns>
        public abstract IEnumerable<Book> Search(string keyWord);
        /// <summary>
        /// 获取检索结果的链接地址
        /// </summary>
        /// <param name="keyWord">检索词</param>
        /// <returns>Url地址</returns>
        public abstract string GetSearchUrl(string keyWord);
        /// <summary>
        /// 检索结果页用来获取检索结果列表的规则.
        /// </summary>
        public abstract string SearchPageXPath { get; }
    }
}
